<template>
  <div class="home-brand-swiper">
    <div :style="{transform: `translateX(-${page * pageWidth}px)`}"
         class="swiper-container">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts"
        setup>
defineProps<{
  pageWidth: number,
  page: 0
}>()
</script>

<style lang="less"
       scoped>
.home-brand-swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;

  .swiper-container {
    transition: all .5s;
    display: inline-flex;

    :deep(* ~ *) {
      margin-left: 10px;
    }
  }
}
</style>